ChatGPT is able to answer leetcode programming questions with ease. Here's the famous TwoSum problem: "Given an array of integers nums and an integer target, write a python function that will return indices of the two numbers such that they add up to target."