Vivek Ghosh's submission of Buddy NIM | CodeChef