IBM Interview Question

hardest problem during development