stack program added

align curly braces. please follow coding standards.