Canonical Interview Question

Switch the 3 languages during interview, how would you solve x problem..