Vineet Kumar's submission of PAL | CodeChef