Capgemini Coding Questions List
1. Count the number of vowels in a string
2. Reverse words in a sentence
3. Check if a number is a palindrome
4. Print a pyramid/star pattern
5. Find the second largest element in an array
6. Sum of digits of a number
7. Check if a string is a pangram
8. Generate Fibonacci series up to N terms
9. Check if a number is Armstrong
10. Find GCD (HCF) and LCM of two numbers
11. Check for prime number
12. Print prime numbers in a range
13. Replace spaces with hyphens in a string
14. Reverse an array using 2-pointer
15. Find duplicate elements in an array
16. Count frequency of characters in a string
17. Remove vowels from a string
18. Convert binary to decimal and vice versa
19. Find factorial of a number
20. Print Pascal's Triangle
21. Count even and odd digits in a number
22. Find missing number in an array
23. Sum of even-position digits
24. Check if two strings are anagrams
25. Matrix transpose or multiplication
26. Rotate an array left/right
27. Print ASCII values of characters
28. Check for perfect number
29. Remove all special characters from a string
30. Capitalize first letter of each word