Amazon interview question

Related to SQL, linux and BDA