Question d’entretien chez noon

First interview was dp+binary search and 2 pointers problem Second with implementation