aman agarwal's submission of Buddy NIM | CodeChef