Optiver Interview Question

Binary Tree of Errors Hackerank Problem