Dear,
In JEE ,you have to find the no of combinations not the list as arun.k.iit has given the solution. but if you want to write a prog. its possible but you have to know some syntx of that language.
for example in C you can write a program:
In C every alphabet has its individual ASCII value in int..
so by using the for loop you can write the program.