← Back to experiences
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/experiences/…$
Recently, I was asked a low-level design (LLD) question during an interview at Microsoft. The prompt was somewhat vague but essentially involved designing a library capable of handling data transformations between various formats. The library needed to accommodate different types of consumers, each generating and interpreting data in different formats such as XML, JSON, and CSV. The task was to design the library to transform data from one format to another given the source and target details. I proposed using the Strategy pattern as the most suitable design pattern for this LLD.