Turbonomic interview question

2 coding questions Seemed like LC questions