JPMorganChase interview question

Simple hackerrank problems equivalent to leetcode easies.