Welcome to the Ranch
Either compile from the root of the file system you are using,
or navigate to the directory those source files are in. DuplicateReplace appears to be a dependency for DuplicateReplaceTest, so
you should compile DuplicateReplace first. From the root write
javac com.company.interview.DuplicateReplace.java
and inside the directory write
javac DuplicateReplace.java
Tell us what happens like that.
If those files are in the same tree you probably don't need the -cp flag. Those classpaths don't look right, anyway.