This was coding round where I was asked to code this problem in optimal solution.
I provided the optimal solution and coded it minimum time.
Interviewer was satisfied with solution.
It was great interaction with Interviewer. He also provided the much information regarding the role and company.