Solve small string and API tasks | NVIDIA Interview Question