These questions are just meant for your coding practice. You will not be evaluated based on this.
You are free to choose any language from the list and code.
If the code area contains the function signature, complete the function alone. We'll take care of the main function, headers, etc.
If you're expected to write the full code, it will be mentioned in the code area. All inputs are from STDIN and output to STDOUT. If you're using Java, use the classname as 'Solution.'
To understand more about the environment and time limits, please reference the FAQ here.
You can print to console to debug your code using the appropriate print command for each language (Eg: cout for C++, printf for C, etc.).
Do not copy code from any source (including websites, books, or friends and colleagues) to complete this assessment. However, referencing programming language documentation or using an IDE that has code completion features is permitted.