C Series-Medium Difficulty