Trilitech interview question

Some basic coding question LC medium equivalent