Electric Hydrogen interview question

Write a stored procedure on spot