HackerRank interview question

DSA Questions/Leetcode from greedy algos.