Pergunta de entrevista da empresa JPMorganChase

dont remember, it was leetcode mediums though