Aman Choudhary's submission of PAL | CodeChef