This is not the kind of query that Wolfram|Alpha will do.
Please see the Wolfram|Alpha example page for the kinds of things it will handle: http://www.wolframalpha.com/examples/
This is a program. To write programs, you want to use something like Mathematica online.