Publicis Sapient | Senior Associate Platform L1
- Posted
- 31 Aug 2024
Summary
I went through an interview process for a Senior Associate Platform L1 role at Publicis Sapient, which included a Hackerrank test followed by a technical round covering various Java, multithreading, OOP, and system design topics.
How it went
I interviewed for the Senior Associate Platform L1 position at Publicis Sapient. The process began with a Hackerrank test, which I found to be quite easy, although I don't recall the exact problems.
The second round was a comprehensive technical discussion covering a wide array of topics. I was asked several coding problems, including finding the nearest number in a sorted array and designing a multithreaded program to print numbers in a specific sequence. Additionally, there were numerous conceptual questions on Java serialization, creating immutable classes, Functional Interfaces, CompletableFuture vs. Future, different ways to create thread pools with ExecutorService, CachedThreadPool vs. FixedThreadPool, Stream API, fail-fast vs. fail-safe mechanisms, Kubernetes Helm charts, Factory design pattern, AWS services, and API Gateway.
Questions asked (14)
- 01
Find Nearest Number in Sorted Array
Data Structures & Algorithms
Open the problemGiven a sorted array, find the number closest to a target value.
- 02
Multithreaded Printing with Specific Sequence
Data Structures & Algorithms
Design a program where three threads (t1, t2, t3) print numbers in a specific interleaved sequence: t1 -> 1, t2 -> 2, t3 -> 3, t1 -> 4, t2 -> 5, and so on.
- 03
Java Serialization Concepts
Other
Discuss concepts and aspects related to Java serialization.
- 04
Make Class Immutable
Other
Given the following Java class, explain and demonstrate how to convert it into an immutable class:
class Employee { private String name; private Integer age; private Address address; } - 05
Functional Interfaces Concepts
Other
Discuss concepts and usage of Functional Interfaces in Java.
- 06
CompletableFuture vs. Future
Other
Explain the differences between Java's CompletableFuture and Future interfaces.
- 07
ExecutorService Thread Pool Creation
Other
Describe the different ways to create a thread pool using ExecutorService in Java.
- 08
CachedThreadPool vs. FixedThreadPool
Other
Explain the differences between CachedThreadPool and FixedThreadPool in Java's ExecutorService.
- 09
Java Stream API Concepts
Other
Discuss concepts and usage of Java Stream API.
- 10
Fail-Fast vs. Fail-Safe Iterators
Other
Explain the concepts of fail-fast and fail-safe iterators in Java collections.
- 11
Kubernetes Helm Charts Concepts
System Design
Discuss concepts and usage of Kubernetes Helm charts.
- 12
Implement Factory Design Pattern
Other
Demonstrate or explain the implementation of the Factory design pattern.
- 13
AWS Services Concepts
System Design
Discuss various AWS services and their use cases.
- 14
API Gateway Concepts
System Design
Discuss concepts and functionalities of an API Gateway.