Microsoft Online Assessment (OA) - Day of week that is K days later
Given current day as day
of the week and an integer K
, the task is to find the day of the week after K
days.
Example 1:
Input:
day
= “Monday”
K
= 3
Output: Thursday
Example 2:
Input:
day
= “Tuesday”
K
= 101
Output: Friday