Vedak interview question

Write SQL query with some condition