JPMorganChase interview question

question-related to programming and coding