Akash Jain's submission of Buddy NIM | CodeChef