They had predefined challenges based on your role. Your are free to choose between java, python or javascript to resolve the challenge. They asked you about the solution you propose and why you decided to resolve the challenge that way. Along with questions about your previous experiences they asked you about improvements you think would be useful for your solution.