ctime`Preformatted text
Visit this link for clear all the test cases
I think this not best solution.
Try here this
What you want solution approach or something else?