Faire interview question

easy medium and easy hard leetcode problem