It was solved two problems from DB interview