Domanda di colloquio di Tic Toc

First two supre easy then Binary search, Dynamic programming