Moody's Interview Question

Coding by hand, general questions, logic questions