Mphasis Interview Question

1. Write a java code to play chess.