Techvista interview question

Technical interview live coding it was