Time Add Seconds

Programming Interview Medium 10 views
Back to Questions

Problem Description

Time hh mm ss and extra seconds x are provided. Create Time class add(x) and output new time in HH:MM:SS (24h).

Input Format

One line: hh mm ss x.

Output Format

One time string.

Sample Test Case

Input:
23 59 50 15
Output:
00:00:05

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next