Anonymous interview question

Problem solving easy and medium problems