TP Technologies interview question

Frontend question from html css