Pregunta de entrevista de JPMorganChase

dont remember, it was leetcode mediums though