Solutions for Freshdesk Hiring Challenge. First two problems.