IBM Interview Question

Hackerrank had few questions. Most easy leetcode and 1 or 2 medium.