They asked me to build API endpoints for a loan management system. I built and submitted it within 10 days (the question said there is no deadline but I clearly took more time than I should've). They saw it and checked my CV for my background and skills and hired me. I was a little skeptical however because they sent an offer letter without ever interviewing me. But to be fair they only offered me a training scholarship of 7 months after which they would make an actual offer based on my performance.