PradeepIT interview question

Regarding mechanical basics and few coding questions