home task
root
Technical Task
We expect the following to hopefully not take up too much of your time, apologise for making you jump through classic interview hoops, and hope you'll forgive us and understand why when you're part of the team and on the receiving end of hundreds of applications!
This isn't a test of C# in particular or syntactic knowledge, but we'd like it completed in C# where possible - where you don't know a function off the top of your head, feel free to use pseudo-code / Google. Just drop a comment stating you know it's pseudo-code, eg:
public void test()
{
5 modulo 7 == 0; // I don't know the modulo syntax for c# off the top of my head!
}
Whilst we use AI tooling in our day to day at OpenRent, for the purposes of this test please avoid doing so. The point of the test is for you to demonstrate your knowledge directly, which we'll assess at interview. If AI tooling has written the code, this will become clear in our interview and the interview will be ended at that point.
Please send us your answer in a text file or github link and let us know how long you spent on it;
*** Question ***
Given a string input, write a function that will return a string made up of the following concatenated:
the reverse of the input string
the earliest character in the alphabet present in the input string (making a reasonable assumption as to what "earliest" means).
count the number of vowels in the input string and append "open" if that number is odd, and "rent" if that number is even.
For example:
Input: nepo
Output: openerent