Import set of SPOJ snippets

Signed-off-by: Ramasamy Chandramouli <rchandramouli@live.com>