Question d’entretien chez JPMorganChase

My coding test was similar to TwoSum problem