Capgemini interview question

1. Remove second non repeating character from string using java 8 streams 2. What is eureka and feign 3. when will you use soap and when rest 4. disadvantages of rest apis 5. fail-fast and fail safe collections 6. idempotent methods in rest api