Basis Technologies interview question

Easy-medium leetcode + questions about Java