Feel free to rate the solution from 1 to 10 👍⭐
It would have been nicer if the function took the format as argument
Ah, yes, no validations.
@MostAskedCodingQuestions