Sonatus Interview Question

Most interviewers asked easy level coding problems (e.g., array manipulation, some with corner case handling). One of them gave a hard problem.