Deutsch-Jozsa algorithm
The Deutsch-Jozsa Algorithm was the first discovered algorithm where a quantum computer performs better than a classical computer. Implement the Deutsch-Jozsa Algorithm, which gets a function f and returns 0 if f is balanced and one if f is constant.